let proto = {};
// 代理方式
function defineGetter(target, key) {
  // return function (target) {}; // 柯理化
  proto.__defineGetter__(key, function () {
    // this指向ctx
    return this[target][key];
  });
}
function defineSetter(target, key) {
  proto.__defineSetter__(key, function (value) {
    this[target][key] = value;
  });
}
defineGetter('request', 'path');
defineGetter('request', 'url');
defineGetter('response', 'body');
defineSetter('response', 'body');
module.exports = proto;
